const reg=/\d/
console.log(reg.exec('a123'))